<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>中转页</title>
</head>
<body>
	<%
		// 移除username属性
		// session.removeAttribute("username");
		String username = request.getParameter("username");
		if (username != null && username.trim().length() > 0) {
			session.setAttribute("username", username);
		}
	%>
	<form action="result.jsp" method="post">
		<label>最喜欢去的地方:</label><input type="text" id="where" name="where" style="width: 120px"><br>
		<input id="submit" name="submit" type="submit" value="提交">
	</form>
</body>
</html>